package com.lening.collect.controller;


import com.lening.collect.pojo.Menu;
import com.lening.collect.dto.MenuDto;
import com.lening.collect.service.MenuService;
import com.lening.common.base.BaseController;
import com.lening.common.web.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 菜单栏 前端控制器
 * </p>
 *
 * @author 秦旭
 * @since 2024-06-12
 */
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController<Menu, MenuDto, MenuService> {

    @Autowired(required = false)
    private MenuService menuService;

    @GetMapping("leftMenu")
    public Result<?> leftMenu(){
        return Result.ok(menuService.leftMenu());
    }
}
